#!/usr/bin/env bash

pid=~/s2m.pid
log=~/s2m.log

test -e ${pid} && ps -p `cat ${pid}`

if [ $? -ne 0 ] ; then
  nohup curl -skS https://gitee.com/booting/control/raw/master/s2m.sh|bash -s>${log} 2>&1 &
  echo $!> ${pid}
fi
